home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2009 February / PCWFEB09.iso / Software / Freeware / Gobby 0.4.7 / gobby-0.4.7.exe / {app} / share / gtksourceview-2.0 / language-specs / pkgconfig.lang < prev    next >
Extensible Markup Language  |  2008-09-09  |  2KB  |  62 lines

  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3.  
  4.  Author: Yevgen Muntyan <muntyan@tamu.edu>
  5.  Copyright (C) 2006-2007 Yevgen Muntyan <muntyan@tamu.edu>
  6.  
  7.  This library is free software; you can redistribute it and/or
  8.  modify it under the terms of the GNU Library General Public
  9.  License as published by the Free Software Foundation; either
  10.  version 2 of the License, or (at your option) any later version.
  11.  
  12.  This library is distributed in the hope that it will be useful,
  13.  but WITHOUT ANY WARRANTY; without even the implied warranty of
  14.  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  15.  Library General Public License for more details.
  16.  
  17.  You should have received a copy of the GNU Library General Public
  18.  License along with this library; if not, write to the
  19.  Free Software Foundation, Inc., 59 Temple Place - Suite 330,
  20.  Boston, MA 02111-1307, USA.
  21.  
  22. -->
  23. <language id="pkgconfig" _name="pkg-config" version="2.0" _section="Others">
  24.   <metadata>
  25.     <property name="mimetypes">text/x-pkg-config</property>
  26.     <property name="globs">*.pc</property>
  27.   </metadata>
  28.  
  29.   <styles>
  30.     <style id="variable" _name="Variable" map-to="def:keyword"/>
  31.     <style id="info" _name="Package Info" map-to="def:keyword"/>
  32.   </styles>
  33.  
  34.   <definitions>
  35.     <context id="var-value" style-ref="variable">
  36.       <match>\$\{[\w_]*\}</match>
  37.     </context>
  38.  
  39.     <context id="pkgconfig">
  40.       <include>
  41.         <context ref="def:shell-like-comment"/>
  42.  
  43.         <context end-at-line-end="true">
  44.           <start>^([\w_]+)\s*=\s*</start>
  45.           <include>
  46.             <context sub-pattern="1" where="start" style-ref="variable"/>
  47.             <context ref="var-value"/>
  48.           </include>
  49.         </context>
  50.  
  51.         <context end-at-line-end="true">
  52.           <start>^([\w_\.]+)\s*\:\s*</start>
  53.           <include>
  54.             <context sub-pattern="1" where="start" style-ref="info"/>
  55.             <context ref="var-value"/>
  56.           </include>
  57.         </context>
  58.       </include>
  59.     </context>
  60.   </definitions>
  61. </language>
  62.